#include"List.h"
int main()
{
	bit::list<int> ls;
	ls.push_back(1);
	ls.push_back(2);
	ls.push_back(3);
	ls.push_back(4);
	ls.push_front(255);
	

	bit::list<int>::iterator it=ls.begin();
	while (it != ls.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl << ls.size()<<endl;
	//bit::list<int> ls1(ls.begin(),ls.end());
	bit::list<int> ls1 = ls;
	ls.push_back(11110);
	ls1 = ls;
	it = ls1.begin();

	while (it != ls1.end())
	{
		cout << *it << " ";
		++it;
	}
	return 0;
}